package rest.home.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author xb
 * @date 2022-05-06 9:03
 * describe
 */

public class PayMent {
    private Integer checkinId;
    private Integer olderId;
    private Integer checkinFee;
    private Integer payStatus;
    private Date stareDate;
    private Date endDate;

    @Override
    public String toString() {
        String checkinFees= null;
        switch (this.checkinFee){
            case 4000:
                checkinFees="单人间--4000(一年)";
                break;
            case 8000:
                checkinFees="双人间--8000(一年)";
                break;
        }
        String payStatuss=null;
        switch (this.payStatus){
            case 1:
                payStatuss="未缴费";
                break;
            case 0:
                payStatuss="已缴费";
        }
        return
                " 缴费编号:" + checkinId +","+
                " 老人编号:" + olderId +","+
                " 费用缴纳:" + checkinFees +","+
                " 缴费状态:" + payStatuss +","+
                " 租房起始日期:" + stareDate +","+
                " 租房结束日期:" + endDate+";" ;
    }

    public PayMent(Integer olderId, Integer checkinFee, Date stareDate, Date endDate) {
        this.olderId = olderId;
        this.checkinFee = checkinFee;
        this.stareDate = stareDate;
        this.endDate = endDate;
    }

    public PayMent(Integer checkinId, Integer olderId, Integer checkinFee, Integer payStatus, Date stareDate, Date endDate) {
        this.checkinId = checkinId;
        this.olderId = olderId;
        this.checkinFee = checkinFee;
        this.payStatus = payStatus;
        this.stareDate = stareDate;
        this.endDate = endDate;
    }

    public PayMent() {

    }

    public Integer getCheckinId() {
        return checkinId;
    }

    public void setCheckinId(Integer checkinId) {
        this.checkinId = checkinId;
    }

    public Integer getOlderId() {
        return olderId;
    }

    public void setOlderId(Integer olderId) {
        this.olderId = olderId;
    }

    public Integer getCheckinFee() {
        return checkinFee;
    }

    public void setCheckinFee(Integer checkinFee) {
        this.checkinFee = checkinFee;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public Date getStareDate() {
        return stareDate;
    }

    public void setStareDate(Date stareDate) {
        this.stareDate = stareDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }
}
